<form name="frmModal" method="post" action="proc/admin/rewarddanpunishment.php">
<input type="hidden" value="rnp-edit" name="proc" />
<h2 class="dialog_title"><span>Edit Reward/Punishment</span></h2>
<div class="dialog_content">
<div style="border-bottom: 1px solid #CCC">
<?php $result = rnp_load($rnp_id)?>
<?php $result = mysql_fetch_assoc($result)?>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
	<tr>
		<td align="right" width="35%">ID Reward/Punishment :</td>
		<td><input name="rnp_id-fake" type="text" disabled="disabled" value="<?php echo $result['REWARD_ID'] ?>" maxlength="4">
		  <input type="hidden" name="rnp_id" value="<?php echo $result['REWARD_ID'] ?>" /></td>
		<td width="35%" align="left" valign="middle">
			<!-- <input type="checkbox" name="rnp_id_generate" title="auto generate" 
				onchange="var fr = $(this).getParent('form'); 
							fr.rnp_id.set('disabled', this.checked).set('value', this.checked? 'auto generate' : '')"> -->
		</td>
	</tr>
	<tr>
		<td align="right">Nama :</td>
		<td colspan="2"><input name="rnp_nama" type="text" value="<?php echo $result['REWARD_NAMA']?>" maxlength="50"></td>
	</tr>
	<tr>
		<td align="right">Jenis :</td>
		<td colspan="2">
			<select name="rnp_jenis">
				<option value="Reward" <?php echo strtolower($result['REWARD_JENIS'])=="reward"? "selected" : ""?>>Reward</option>
				<option value="Punishment" <?php echo strtolower($result['REWARD_JENIS'])=="punishment"? "selected" : ""?>>Punishment</option>
			</select>
		</td>
	</tr>
</table>
</div>
<div class="dialog_buttons"><input type="button" value="Save"
	name="save" onclick="doSave($(this).getParent('form')); FBModal_hide()" />
<input type="button" value="Close" name="close" onclick="FBModal_hide()" />
</div>
</div>
</form>